
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Administrator
 */
public class GetRandoDemo1 {
    public static void main(String[] args) {
        byte[] buff=new byte[100];
        ByteArrayOutputStream o=new ByteArrayOutputStream(100);
        
        for (int i=0;i<99;i++){
    
        o.write((int)(Math.random()*255 + 1 ) ); 
                
        
}
        buff=o.toByteArray();
        ByteArrayInputStream b=new ByteArrayInputStream(buff);
        int temp=0;
        while((temp=b.read())!=-1)
        {
            System.out.print(temp+"");
        }
         System.out.println();
        }
        
        
    }


